<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">用户名</label>
						<div class="am-u-sm-9">
							<input type="text" name="username" value="{$user_info['username']}" placeholder="用户名">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">密码</label>
						<div class="am-u-sm-9">
							<input type="password" name="new_password" placeholder="密码">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">确认密码</label>
						<div class="am-u-sm-9">
							<input type="password" name="confirm_password" placeholder="确认密码">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">用户组</label>
						<div class="am-u-sm-9">
							<select name="group_id">
								{foreach from=$user_group item=group}
								<option {if $user_info['group_id'] eq $group.id} selected="selected"{/if} value="{$group.id}">{$group.role_name}</option>
								{/foreach}
							</select>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">邮箱地址</label>
						<div class="am-u-sm-9">
							<input type="text" name="email" value="{$user_info['email']}" >
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">QQ</label>
						<div class="am-u-sm-9">
							<input type="text" name="qq" value="{$user_info['qq']}">
						</div>
					</div>
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="{$id}" />
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript">
		   hy_submit('index.php?g=admin&m=admin&a={$action}');
		</script>
	</body>

</html>